import java.io.*;
import java.lang.Throwable;

public class Test20 {
    public static void main(String[] args) throws IOException {
        String fileName = "D:\\java\\IOStreamFile\\Hello.txt";

        try {
            BufferedReader in = new BufferedReader(new FileReader(fileName));

            String line = in.readLine();

            while (line != null) {
                System.out.println(line);
                line = in.readLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            System.out.println("end");
        }
    }
}
